/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.tawriq.assignment2.question3.SRP.Correct.Config;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.tawriq.assignment2.question3.SRP.Correct.Animal;
import za.ac.cput.tawriq.assignment2.question3.SRP.Correct.AnimalDetails;

/**
 *
 * @author Tawriq
 */
@Configurable
public class Config {
    @Bean
    public Animal animal(){
        return new Animal();
    }
    
    @Bean
    public AnimalDetails animalDetail(){
        return new AnimalDetails() {

            @Override
            public String getName() {
                throw new UnsupportedOperationException("Not supported yet.");
            }

            @Override
            public int getAge() {
                throw new UnsupportedOperationException("Not supported yet.");
            }
        };
    }
}
